<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<title>SMap test</title>
</head>

<script type="text/javascript" src="../smap.js"></script>
<script type="text/javascript" src="js/testUnit.js"></script>
<body>

<input type=button id=btn value="click me">
<input type=button id=rem value="remove bind">
<input type=button id=rem1 value="remove bind by rec">
<script>
	var btn = getElement('btn');
	var f, rec;
	rec = bindDOM(btn, 'click', f = function() {
		alert('click');
	});
	bindDOM(getElement('rem'), 'click', function() {
		unbindDOM(btn, 'click', f);
	});
	bindDOM(getElement('rem1'), 'click', function() {
		unbindDOM(rec);
	});
</script>
</body>
</html>